#ifndef MODBUSSTRUCT_H
#define MODBUSSTRUCT_H

#include <QObject>
#include "ModbusFunctionStruct.h"

class ModbusStruct
{
public:
    ModbusStruct();
    QString zone() const;
    void setZone(const QString &zone);

    QString device() const;
    void setDevice(const QString &device);

    quint8 deviceAddress() const;
    void setDeviceAddress(const quint8 &deviceAddress);

    QList<ModbusFunctionStruct> functionList() const;
    void setFunctionList(const QList<ModbusFunctionStruct> &functionList);

private:
    QString m_zone;
    QString m_device;
    quint8  m_deviceAddress;
    QList<ModbusFunctionStruct> m_functionList;
};

#endif // MODBUSSTRUCT_H
